package com.bf.xpdd.service.impl;

import java.util.List;

import com.bf.xpdd.domain.ActivityItemBean;
import com.bf.xpdd.persistent.iface.DaoActivityItem;
import com.bf.xpdd.service.ActivityItemService;

/**
 * 活动商品服务实现
 * 
 * @author linmu
 * 
 */
public class ActivityItemServiceImpl implements ActivityItemService
{
	/**
	 * 活动商品DAO
	 */
	private DaoActivityItem daoActivityItem;

	/**
	 * spring注入dao
	 * 
	 * @param daoActivityItem
	 */
	public void setDaoActivityItem(DaoActivityItem daoActivityItem)
	{
		this.daoActivityItem = daoActivityItem;
	}

	@Override
	public void addActivityItem(ActivityItemBean item)
	{
		this.daoActivityItem.addActivityItem(item);
	}

	@Override
	public void addActivityItemBatch(List<ActivityItemBean> itemList)
	{
		this.daoActivityItem.addActivityItemBatch(itemList);
	}

	@Override
	public ActivityItemBean queryActivityItemById(long id)
	{
		return this.daoActivityItem.queryActivityItemById(id);
	}

	@Override
	public List<ActivityItemBean> queryActivityItemByActId(long actId)
	{
		return this.daoActivityItem.queryActivityItemByActId(actId);
	}

	@Override
	public void delActivityItemBeanById(long id)
	{
		this.daoActivityItem.delActivityItemBeanById(id);
	}

	@Override
	public void delActivityItemBeanByActId(long id)
	{
		this.daoActivityItem.delActivityItemBeanByActId(id);
	}

	@Override
	public List<Long> queryActItemIdsByActId(long actId)
	{
		return this.daoActivityItem.queryActItemIdsByActId(actId);
	}

	@Override
	public void delActivityItemByIdBatch(long aid, List<Long> itemIdList)
	{
		this.daoActivityItem.delActivityItemByIdBatch(aid, itemIdList);
	}

	@Override
	public List<ActivityItemBean> queryActItemByActIds(String actIds)
	{
		return this.daoActivityItem.queryActItemByActIds(actIds);
	}

	@Override
	public List<Long> queryActItemIdsByNick(String nick, long actId)
	{
		return this.daoActivityItem.queryActItemIdsByNick(nick, actId);
	}

}
